<h1>
        <span class="action-span1">
		<a href="javascript:void(0);">道具管理</a>---<a href="javascript:void(0);"><?php if($propsID): ?>修改商品<?php else: ?>添加商品<?php endif;?></a>
	</span>
	<div style="clear:both"></div>
</h1>

  <!-- start user list -->
<div class="list-div" id="listDiv">
    <form action="./index.php?c=props&a=commoditySave" method="post" >
        <input type="hidden" name="commodityID" value="<?=$commodityID;?>">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th width="25%">商品名称：</th>
    <td><input type="text" style="width:677px;" value="<?=$commodity['title'];?>" name="title"></td>
  </tr>
  <tr>
    <th width="25%">商品价格：</th>
    <td><input type="text" style="width:677px;" value="<?=$commodity['price'];?>" name="price"></td>
  </tr>
  <tr>
    <th width="25%">货币类型：</th>
    <td><select name='pType'>
          <option value='1' <?php if(1 ==$commodity['pType'] ):echo 'selected';endif;?> >游戏币</option>
         <option value='2'  <?php if(2 ==$commodity['pType'] ):echo 'selected';endif;?> >人民币</option>
         <option value='3' <?php if(3 ==$commodity['pType'] ):echo 'selected';endif;?> >筹码</option>   
        </select></td>
  </tr>
  <tr>
    <th width="25%">打折力度：</th>
    <td><input type="text" value="<?=$commodity['discount']?$commodity['discount']:10;?>" style="width:20px;" name="discount">折</td>
  </tr>
  <tr>
    <th width="25%">是否置顶：</th>
    <td><select name='stick'>
          <option value='0' <?php if(1 ==$commodity['stick'] ):echo 'selected';endif;?> >不置顶</option>
         <option value='1'  <?php if(2 ==$commodity['stick'] ):echo 'selected';endif;?> >置顶</option>
        </select></td>
  </tr>
  <tr>
    <th width="25%">上架状态：</th>
    <td><select name='state'>
          <option value='0' <?php if(1 ==$commodity['state'] ):echo 'selected';endif;?> >不显示</option>
         <option value='1'  <?php if(2 ==$commodity['state'] ):echo 'selected';endif;?> >下架</option>
         <option value='2'  <?php if(2 ==$commodity['state'] ):echo 'selected';endif;?> >上架</option>
        </select></td>
  </tr>
    <th width="25%">商品描述：</th>
    <td><textarea name="descripe" rows="9" cols="94"><?=$commodity['descripe'];?></textarea></td>
  </tr>
  <tr>
    <th width="25%">排序值：</th>
    <td><input type="text" style="width:677px;" value="<?=$commodity['rander']?$commodity['rander']:0;?>" name="rander"></td>
  </tr>
  <tr id="props">
    <th width="25%">商品：</th>
    <td><select name='propsIDS[]'>
            <?php foreach( $propsList as $v ): ?>
            <option value='<?php echo $v['id'].'-'.$v['title']; ?>' ><?php echo $v['title']; ?></option>
          <?php endforeach; ?>
         </select>-数量：<input type="text" name="propsNum[]"><br/>
         <select name='propsIDS[]'>
            <?php foreach( $propsList as $v ): ?>
            <option value='<?php echo $v['id'].'-'.$v['title']; ?>' ><?php echo $v['title']; ?></option>
          <?php endforeach; ?>
         </select>-数量：<input type="text" name="propsNum[]"><br/>
         <select name='propsIDS[]'>
            <?php foreach( $propsList as $v ): ?>
            <option value='<?php echo $v['id'].'-'.$v['title']; ?>' ><?php echo $v['title']; ?></option>
          <?php endforeach; ?>
         </select>-数量：<input type="text" name="propsNum[]"><br/>
         <select name='propsIDS[]'>
            <?php foreach( $propsList as $v ): ?>
            <option value='<?php echo $v['id'].'-'.$v['title']; ?>' ><?php echo $v['title']; ?></option>
          <?php endforeach; ?>
         </select>-数量：<input type="text" name="propsNum[]"><br/>
         <select name='propsIDS[]'>
            <?php foreach( $propsList as $v ): ?>
            <option value='<?php echo $v['id'].'-'.$v['title']; ?>' ><?php echo $v['title']; ?></option>
          <?php endforeach; ?>
         </select>-数量：<input type="text" name="propsNum[]"><br/>
    </td>
  </tr>
   <tr>
    <th colspan='2'><input type='submit' value='提交' style='width:100px;'></th>
  </tr>
  </table>
       </form>
<!-- end goods list -->

<!-- 分页 -->
</div>